<template>
  <div class="head">
    <h1>Vue头部信息</h1>
    <h2>{{name}},{{age}},{{sex}}</h2>
  </div>
</template>

<script>
export default {
    name:'MyHeader',
    props:['name','age','sex']
}
</script>

<style scoped>
    .head{
        height: 100px;
        background-color: aqua;
    }
</style>